﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{

    /// [Generated Jan 31 2011]
    [Serializable()]
    public partial class i_CalendarItemRecurrence : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _CalendarItemRecurrence_ID;
        private int _CalendarItem_ID;
        private string _RecurrencePattern;

        #endregion

        #region "public properties"

        public int CalendarItemRecurrence_ID
        {
            get { return _CalendarItemRecurrence_ID; }
            set { _CalendarItemRecurrence_ID = value; }
        }
        public int CalendarItem_ID
        {
            get { return _CalendarItem_ID; }
            set { _CalendarItem_ID = value; }
        }
        public string RecurrencePattern
        {
            get { return _RecurrencePattern; }
            set { _RecurrencePattern = value; }
        }

        #endregion


        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return CalendarItemRecurrence_ID; } set { } }
        #endregion
    }


    public partial class s_CalendarItemRecurrence : i_CalendarItemRecurrence
    {
        #region "MAPPER"
        public static EDMD.i_CalendarItemRecurrence Convert(CalendarItemRecurrence od_CalendarItemRecurrence)
        {
            return new EDMD.i_CalendarItemRecurrence()
            {

                CalendarItemRecurrence_ID = IsNull(od_CalendarItemRecurrence.CalendarItemRecurrence_ID),
                CalendarItem_ID = IsNull(od_CalendarItemRecurrence.CalendarItem_ID),
                RecurrencePattern = IsNull(od_CalendarItemRecurrence.RecurrencePattern),

            };
        }
        #endregion
    }
}

